9.2 VTP  
  9.2.5 VTP configuration  
The following basic tasks must be considered before configuring VTP and VLANs on the network.
  1. Determine the version number of VTP that will be utilized.
  2. Decide if this switch is to be a member of an existing management domain or if a new domain should be created. If a management domain exists, determine the name and password of the domain. 
  3. Choose a VTP mode for the switch.

Two different versions of VTP are available, Version 1 and Version 2. The two versions are not interoperable. If a switch is configured in a domain for VTP Version 2, all switches in the management domain must be configured for VTP Version 2. VTP Version 1 is the default. VTP Version 2 may be implemented if some of the specific features that VTP Version 2 offers are not offered in VTP Version 1. The most common feature that is needed is Token Ring VLAN support.

To configure the VTP version on a Cisco IOS command-based switch, first enter VLAN database mode.

Use the following command to change the VTP version number on a set command-based switch.

Switch#vlan database
Switch(vlan)#vtp v2-mode

If the switch being installed is the first switch in the network, create the management domain. If the management domain has been secured, configure a password for the domain.

To create a management domain use the following command:

Switch(vlan)#vtp domain cisco

The domain name can be between 1 and 32 characters. The password must be between 8 and 64 characters long.

To add a VTP client to an existing VTP domain, always verify that its VTP configuration revision number is lower than the configuration revision number of the other switches in the VTP domain. Use the show vtp status command. Switches in a VTP domain always use the VLAN configuration of the switch with the highest VTP configuration revision number. If a switch is added that has a revision number higher than the revision number in the VTP domain, it can erase all VLAN information from the VTP server and VTP domain.

Choose one of the three available VTP modes for the switch. If this is the first switch in the management domain and additional switches will be added, set the mode to server. The additional switches will be able to learn VLAN information from this switch. There should be at least one server.

VLANs can be created, deleted, and renamed at will without the switch propagating changes to other switches. If a large number of people are configuring devices within the network, there is a risk of overlapping VLANs with two different meanings in the network but with the same VLAN identification.

To set the correct mode of the Cisco IOS command-based switch, use the following command:

Switch(vlan)#vtp {client | server | transparent}

Figure shows the output of the show vtp status command. This command is used to verify VTP configuration settings on a Cisco IOS command-based switch.

Figure shows an example of the show vtp counters command. This command is used to display statistics about advertisements sent and received on the switch.

 

Lab Activity

Lab Exercise: VTP Client and Server Configurations

This lab is to configure the VTP protocol to establish server and client switches .

   
 

Lab Activity

e-Lab Activity: VTP Client and Server Configurations

In this lab, the student will configure the VTP protocol to establish server and client switches .

   
 

Web Links

Multilayer Switching Commands

http://www.cisco.com/univercd/cc/
td/doc/product/software/ios120/12cgcr/
switch_r/xrmls.htm